# 方法一:切片取出，然后倒叙字符串
my_str = "万过薪月，员序程马黑来，mohtyP学"
result1 = my_str[9:4:-1]
print(result1)

# 方法二：split分隔"，"，replace替换”来“，倒叙字符串
my_str = "万过薪月，员序程马黑来，mohtyP学"
str = my_str.split("，")[1]
new_str = str.replace("来","")
print(new_str[::-1])

